package hashSetExample;
import java.util.Set;
import java.util.HashSet;

public class HashSetDemo {
    public static void main(String[] args) {
        Set<String> ha = new HashSet<String>();
        ha.add("one");
        ha.add("two");
        ha.add("three");
        ha.add("two");
        for(var s:ha)
            System.out.println(s);
        ha.remove("three");
        System.out.println("删除后:");
        for(var s:ha)
            System.out.println(s);
    }
}
